package com.yantong.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "x_login_info")
public class XLoginInfo {
    @Id
    private Long id;

    /**
     * 账户所属商户id
     */
    @Column(name = "centre_id")
    private Long centreId;

    /**
     * 账户所属门店id
     */
    @Column(name = "member_id")
    private Long memberId;

    /**
     * 微信openid
     */
    @Column(name = "open_id")
    private String openId;

    /**
     * 账户对应的memberId
     */
    @Column(name = "my_member_id")
    private Long myMemberId;

    /**
     * 用户手机号
     */
    private String mobile;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取账户所属商户id
     *
     * @return centre_id - 账户所属商户id
     */
    public Long getCentreId() {
        return centreId;
    }

    /**
     * 设置账户所属商户id
     *
     * @param centreId 账户所属商户id
     */
    public void setCentreId(Long centreId) {
        this.centreId = centreId;
    }

    /**
     * 获取账户所属门店id
     *
     * @return member_id - 账户所属门店id
     */
    public Long getMemberId() {
        return memberId;
    }

    /**
     * 设置账户所属门店id
     *
     * @param memberId 账户所属门店id
     */
    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    /**
     * 获取微信openid
     *
     * @return open_id - 微信openid
     */
    public String getOpenId() {
        return openId;
    }

    /**
     * 设置微信openid
     *
     * @param openId 微信openid
     */
    public void setOpenId(String openId) {
        this.openId = openId;
    }

    /**
     * 获取账户对应的memberId
     *
     * @return my_member_id - 账户对应的memberId
     */
    public Long getMyMemberId() {
        return myMemberId;
    }

    /**
     * 设置账户对应的memberId
     *
     * @param myMemberId 账户对应的memberId
     */
    public void setMyMemberId(Long myMemberId) {
        this.myMemberId = myMemberId;
    }

    /**
     * 获取用户手机号
     *
     * @return mobile - 用户手机号
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * 设置用户手机号
     *
     * @param mobile 用户手机号
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}